/*
 * @author dumeng
 */
'use strict'
import request from '@/utils/request'

export function fetchList4course(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/subject/queryPageSaas',
    method: 'POST',
    data
  })
}
/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data: {
      dictCode
    }
  })
}

/**
 * 获取分类树形列表
 */
export function fetchClassify(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/learnClassify/getPTClassifyTree',
    method: 'POST',
    data
  })
}
/**
 * 获取分类树形列表企业端
 */
export function fetchClassIfication(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/learnClassify/getClassifyTree',
    method: 'POST',
    data
  })
}

/**
 * 查询课件
 */
export function queryList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/subject/getSaas',
    method: 'POST',
    data
  })
}
/**
 * 查询标签
 */
export function queryLabelList(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/courseInfo/getCourseTag',
    method: 'POST',
    data
  })
}
/**
 * 关联平台端课程
 */
export function submitData(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/subject/insertSaas',
    method: 'POST',
    data
  })
}
